#ifndef COMMON_DB_H
#define COMMON_DB_H

#include "Type.h"

class DataBase
{
public:
	DataBase();
	~DataBase();

	bool Init(char* pIp, uint uPort, char* pUser, char* pPassWord, char* pDataBase);
	void Close();

	bool GetTablesInfo(class Xml& xml);
	bool ExecuteSql(const char* pSql, size_t len);
private:
	struct st_mysql* m_pMysql;
};

#endif